package com.example.tanlee.ocrgraduation.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.example.tanlee.ocrgraduation.application.MyApplication;
import com.example.tanlee.ocrgraduation.util.MyLog;

/**
 * Created by Tanlee on 2017/2/17.
 */
public abstract class MyActivity extends AppCompatActivity{

    private MyApplication myapplication = MyApplication.getInstance();
    public static MyLog log = MyLog.tanliLog();
    abstract void initView();

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    public void setMyapplication(MyApplication myapplication) {
        this.myapplication = myapplication;
    }

    /**
     * myapplication.
     *
     * @return the myapplication
     */
    public MyApplication getMyapplication() {
        return myapplication;
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
